package com.training.java.core.mutability;

public class Car {

	private String color;
	private String vinnumber;
	private String model;
	private int gear;
	private int speed;

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getVinnumber() {
		return vinnumber;
	}

	public void setVinnumber(String vinnumber) {
		this.vinnumber = vinnumber;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	
	public int getGear() {
		return gear;
	}

	public void setGear(int gear) {
		this.gear = gear;
	}

	public void accelerate(int newspeed) {
		speed = newspeed + speed;
		System.out.println("After Pushing Accelatrte Speed =" + speed);
	}
	
	public void Changegear(int Changegear)
	{
		System.out.println("After Changing Gear = "+ Changegear);
	}
	
	public void applybreak()
	{
		int Gear=0;
		System.out.println("Car Is Stoped And Gear = " +Gear);
	}

}
